import request from '@/utils/request'

// 查询扫码记录列表
export function listScan(query) {
  return request({
    url: '/system/scan/list',
    method: 'get',
    params: query
  })
}

// 查询扫码记录详细
export function getScan(scanId) {
  return request({
    url: '/system/scan/' + scanId,
    method: 'get'
  })
}

// 新增扫码记录
export function addScan(data) {
  return request({
    url: '/system/scan',
    method: 'post',
    data: data
  })
}

// 修改扫码记录
export function updateScan(data) {
  return request({
    url: '/system/scan',
    method: 'put',
    data: data
  })
}

// 删除扫码记录
export function delScan(scanId) {
  return request({
    url: '/system/scan/' + scanId,
    method: 'delete'
  })
}
